package com.yuantong.xyerp.core.api.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 库存记录表
 * </p>
 *
 * @author JianguoYin
 * @since 2021-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WarehouseRecords对象", description="库存记录表")
public class WarehouseRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "36位UUID")
    private String id;

    @ApiModelProperty(value = "产品品类全编码，每两位一级（冗余字段）")
    private String categoryCode;

    @ApiModelProperty(value = "产品大品类名（冗余字段）")
    private String categoryName;

    @ApiModelProperty(value = "一级品名（冗余字段）")
    private String levelOne;

    @ApiModelProperty(value = "二级品名（冗余字段）")
    private String levelTwo;

    @ApiModelProperty(value = "三级品名（冗余字段）")
    private String levelThree;

    @ApiModelProperty(value = "库存物品id")
    private String goodsId;

    @ApiModelProperty(value = "物品名称（冗余字段）")
    private String goodsName;

    @ApiModelProperty(value = "仓库id（t_organization表中类型为仓库的记录id）")
    private String warehouseId;

    @ApiModelProperty(value = "库存重量（出入库时自动修改）")
    private BigDecimal weight;

    @ApiModelProperty(value = "库存数量（出入库时自动修改）")
    private Integer quantity;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "最近修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "最近出入库单id")
    private String lastRecordId;


}
